package com.jctrip.hotel.source.model.atour;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

/**
 * @Author：Haruhi
 * @description:
 * @Date：2023/12/4 11:46
 * @Package：com.jctrip.hotel.source.model.atour
 * @Project：hotel-main
 */
@Data
public class AtourIncrNotifyData {

    /**
     * hotelId : 114
     * roomTypeId : 4
     * accDateStockParams : [{"accDate":"2022-01-18","roomRateTypeId":522,"mebIds":[1386524185],"stock":13,"rateCode":"TMC85PPDBB"},{"accDate":"2022-01-18","roomRateTypeId":240,"mebIds":[1386287267],"stock":13,"rateCode":"TMC-yulin2"},{"accDate":"2022-01-18","roomRateTypeId":13773,"mebIds":[1386524278,1386524032,1386524095,1386524680],"stock":13,"rateCode":"YUN85pp"},{"accDate":"2022-01-18","roomRateTypeId":578,"mebIds":[1386524180,1386524317],"stock":13,"rateCode":"TMC92PPDB"},{"accDate":"2022-01-18","roomRateTypeId":13754,"mebIds":[1386287472,1386287474],"stock":13,"rateCode":"TMCCTR2B"},{"accDate":"2022-01-18","roomRateTypeId":533,"mebIds":[1386524053,1386524272,1386213962,1386524044,1386524793,1386286862],"stock":13,"rateCode":"TCO82PPDBB"},{"accDate":"2022-01-18","roomRateTypeId":410,"mebIds":[1386524054,1386287544,1386524845],"stock":13,"rateCode":"TCO82BARB"},{"accDate":"2022-01-18","roomRateTypeId":13776,"mebIds":[1386524039,1386524040],"stock":13,"rateCode":"TCO7PPDBB"},{"accDate":"2022-01-18","roomRateTypeId":372,"mebIds":[1386521108,1386287920,1386524806,1386288354,1386237187,1386243446,1386524867,1386287146,1386288349,1386523832,1386524776,1386524842],"stock":13,"rateCode":"TMC88PPD"},{"accDate":"2022-01-18","roomRateTypeId":13766,"mebIds":[1386524708,1386523974,1386524652],"stock":13,"rateCode":"YUN88pp"},{"accDate":"2022-01-18","roomRateTypeId":13767,"mebIds":[1386288353],"stock":13,"rateCode":"MEI92BAR30"},{"accDate":"2022-01-18","roomRateTypeId":345,"mebIds":[1386201175],"stock":13,"rateCode":"QUN92BAR"},{"accDate":"2022-01-18","roomRateTypeId":531,"mebIds":[1386200664,1386201120],"stock":13,"rateCode":"TCO82PPDB"},{"accDate":"2022-01-18","roomRateTypeId":333,"mebIds":[1386521128],"stock":13,"rateCode":"MEI92PPD"},{"accDate":"2022-01-18","roomRateTypeId":572,"mebIds":[1386288350],"stock":13,"rateCode":"tmc85PPD"},{"accDate":"2022-01-18","roomRateTypeId":208,"mebIds":[1386524096],"stock":13,"rateCode":"TMCBKU-baokuyufu"},{"accDate":"2022-01-18","roomRateTypeId":13810,"mebIds":[1386287399],"stock":13,"rateCode":"QNRYUFU92"},{"accDate":"2022-01-18","roomRateTypeId":499,"mebIds":[1386524183,1386524176,1386524605,1386524858],"stock":13,"rateCode":"TMC82PPDBB"},{"accDate":"2022-01-18","roomRateTypeId":195,"mebIds":[1386287923,1386287626],"stock":13,"rateCode":"TA88P"},{"accDate":"2022-01-18","roomRateTypeId":13755,"mebIds":[1386287474],"stock":13,"rateCode":"TMCCTR5"}]
     */

    //亚朵酒店id
    @JsonProperty("hotelId")
    private Integer hotelId;

    //亚朵房型id
    @JsonProperty("roomTypeId")
    private Integer roomTypeId;
    /**
     * accDate : 2022-01-18
     * roomRateTypeId : 522
     * mebIds : [1386524185]
     * stock : 13
     * rateCode : TMC85PPDBB
     */

    @JsonProperty("accDateStockParams")
    private List<AccDateStockParamsBean> accDateStockParams;

    @Data
    public static class AccDateStockParamsBean {
        //营业日/入住日
        @JsonProperty("accDate")
        private String accDate;
        //房价代码id
        @JsonProperty("roomRateTypeId")
        private Integer roomRateTypeId;
        //实时库存
        @JsonProperty("stock")
        private Integer stock;
        //房价代码
        @JsonProperty("rateCode")
        private String rateCode;
        //协议会员id
        @JsonProperty("mebIds")
        private List<Integer> mebIds;
    }
}
